package com.hushow.plugin.brick.demo2;

import com.gitee.starblues.bootstrap.SpringPluginBootstrap;
import com.gitee.starblues.bootstrap.annotation.OneselfConfig;
import com.gitee.starblues.bootstrap.coexist.CoexistAllowAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 基本插件
 * @author starBlues
 * @version 1.0
 * @since 2021-08-01
 */
@SpringBootApplication
@OneselfConfig(mainConfigFileName = {"application.yml", "application-dev.yml"})
@EnableConfigurationProperties
//@ComponentScan(basePackages = {"com.hucodex.rest.common.utils"})
public class BrickCoexistPluginDemo2Application extends SpringPluginBootstrap {

    public static void main(String[] args) {
        new BrickCoexistPluginDemo2Application().run(BrickCoexistPluginDemo2Application.class, args);
    }

    @Override
    protected void configCoexistAllowAutoConfiguration(CoexistAllowAutoConfiguration configuration) {
        configuration.add("com.baomidou.mybatisplus.autoconfigure");

        configuration.add("org.springframework.cloud.openfeign");

        configuration.add("org.springframework.cloud.netflix");
        //configuration.add("org.springframework.cloud.netflix.ribbon");
        configuration.add("com.dimine.common.ribbon");

        configuration.add("org.springframework.cloud.client");

        configuration.add("org.springframework.cloud");

        configuration.add("com.alibaba.cloud.nacos");

        configuration.add("org.springframework.boot.autoconfigure");

        configuration.add("org.redisson.spring.starter");

//        configuration.add("com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure");
//        configuration.add("org.springframework.boot.autoconfigure.jdbc.");
//        configuration.add("com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration");

    }
}
